package cn.com.agree.bigdata.vmdatahandle.constant;

import java.io.File;

/**
 * @description: Global Constants.
 * @author: Liyanyan
 * @version: 1.0
 * @create: 2019-04-18
 **/
public final class GlobalConst {
    public static final String GET_ALL_INDICES_API = "/_cat/indices/?format=json&pretty";
    public static final String GET_ALLOCATION_API = "/_cat/allocation?v&format=json&pretty";
    public static final String APP_VERSION = "1.0.0";

    public static final String ROOT_DIR = System.getProperty("user.dir");
    public static final String CONFIG_DIR = ROOT_DIR + File.separator + "config";

    /**
     * ES选项
     * FIXME
     */
    public static final String ES_DEFAULT_QUERY_TIMEOUT_STRING = "60";
    public static final int ES_REQUEST_TIMEOUT = 30;
    public static final long BACK_OFF_INIT = 1000L;
    public static final long BACK_OFF_MAX = 60000L;
    public static final long BACK_OFF_FACTOR = 2L;

//    public static final String AI_BATCH_EMBEDDINGS = "/embeddings_service/batch_embeddings/";
//public static final String AI_SUMMARIZE_SERVICE = "/qa_service/summarize_service/";
//    public static final String AI_BATCH_EMBEDDINGS = "/api/v1/ecology/embeddings";

    public static final String AI_BATCH_EMBEDDINGS = "/api/v1/ecology/batch_embeddings";
    public static final String AI_SUMMARIZE_SERVICE = "/api/v1/ecology/summarize_service";

    public static final int EMBEDDING_MAX_SIZE = 512;
    public static final int SUMMARY_EMBEDDING_MAX_SIZE = 4096;
    private GlobalConst() {

    }
}

